home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / kmdidefines.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-09-10  |  3.8 KB  |  118 lines

  1. //----------------------------------------------------------------------------
  2. //    filename             : kmdidefines.h
  3. //----------------------------------------------------------------------------
  4. //    Project              : KDE MDI extension
  5. //
  6. //    begin                : 07/1999       by Szymon Stefanek as part of kvirc
  7. //                                         (an IRC application)
  8. //    changes              : 09/1999       by Falk Brettschneider to create an
  9. //                                         stand-alone Qt extension set of
  10. //                                         classes and a Qt-based library
  11. //                           2000-2003     maintained by the KDevelop project
  12. //
  13. //    copyright            : (C) 1999-2003 by Falk Brettschneider
  14. //                                         and
  15. //                                         Szymon Stefanek (stefanek@tin.it)
  16. //    email                :  falkbr@kdevelop.org (Falk Brettschneider)
  17. //----------------------------------------------------------------------------
  18. //
  19. //----------------------------------------------------------------------------
  20. //
  21. //    This program is free software; you can redistribute it and/or modify
  22. //    it under the terms of the GNU Library General Public License as
  23. //    published by the Free Software Foundation; either version 2 of the
  24. //    License, or (at your option) any later version.
  25. //
  26. //----------------------------------------------------------------------------
  27. #ifndef _KMDI_DEFINES_H_
  28. #define _KMDI_DEFINES_H_
  29.  
  30. #include <kdelibs_export.h>
  31.  
  32. #define KMDI_CHILDFRM_SEPARATOR 2
  33. #define KMDI_CHILDFRM_BORDER 4
  34. #define KMDI_CHILDFRM_DOUBLE_BORDER 8
  35. #define KMDI_CHILDFRM_MIN_WIDTH 130
  36.  
  37. //----------------------------------------------------------------------------
  38. /** 
  39. * @short A namespace for the KMDI library
  40. */
  41. namespace KMdi
  42. {
  43.    /** extent Qt events
  44.       @see QCustomEvent, QEvent::User
  45.       \code
  46.       bool B_MyWidget::event( QEvent* e) {
  47.          if( e->type() == QEvent::Type(QEvent::User + int(KMdi::EV_Move))) {
  48.             ...
  49.          }
  50.          ...
  51.       }
  52.       \endcode
  53.    */
  54.    enum EventType {
  55.       EV_Move=1,
  56.       EV_DragBegin,
  57.       EV_DragEnd,
  58.       EV_ResizeBegin,
  59.       EV_ResizeEnd
  60.    };
  61.  
  62.    /**
  63.    * During KMdiMainFrm::addWindow the enum AddWindowFlags is used to determine how the view is initialy being added to the MDI system
  64.    */
  65.    enum AddWindowFlags {
  66.       /**
  67.       * standard is: show normal, attached, visible, document view (not toolview). Maximize, Minimize, Hide adds
  68.       * appropriately. Detach adds a view that appears toplevel, ToolWindow adds the view as tool view.
  69.       * That means it is stay-on-top and toplevel. UseKMdiSizeHint should use the restore geometry of the
  70.       * latest current top childframe but is not supported yet.
  71.       */
  72.       StandardAdd = 0,
  73.       Maximize    = 1,
  74.       Minimize    = 2,
  75.       Hide        = 4,
  76.       Detach      = 8,
  77.       ToolWindow  = 16,
  78.       UseKMdiSizeHint = 32,
  79.       AddWindowFlags = 0xff
  80.    };
  81.  
  82.    enum FrameDecor {
  83.       Win95Look = 0,
  84.       KDE1Look  = 1,
  85.       KDELook  = 2,
  86.       KDELaptopLook = 3
  87.    };
  88.  
  89.    enum MdiMode {
  90.       UndefinedMode  = 0,
  91.       ToplevelMode   = 1,
  92.       ChildframeMode = 2,
  93.       TabPageMode    = 3,
  94.       IDEAlMode      = 4
  95.    };
  96.  
  97.    enum TabWidgetVisibility {
  98.       AlwaysShowTabs         = 0,
  99.       ShowWhenMoreThanOneTab = 1,
  100.       NeverShowTabs          = 2
  101.    };
  102.  
  103.   /**
  104.    * The style of the toolview tabs
  105.    * \since 3.3
  106.    */
  107.    enum ToolviewStyle {
  108.    /** Show only icons on the toolview tabs. The visible toolviews contain both the icon and text. */
  109.       IconOnly = 0,
  110.    /** Show only the text description on the toolview tabs. */
  111.       TextOnly = 1,
  112.    /** Show both the icon and description on the toolview tabs. */
  113.       TextAndIcon = 3
  114.    };
  115. } //namespace
  116.  
  117. #endif //_KMDIDEFINES_H_
  118.